/**
 *Copyright (c) 2024 watereyes
 * workflow is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.koron.ebs.util.field.EnumElement;

import com.koron.common.bean.DefineFieldBean;
import com.koron.common.bean.StaffBean;
import com.koron.common.web.bean.DepartmentTreeBean;

public class Constant {
	/**
	 * 登录用户在SESSION里的储存KEY
	 */
	public static final String USER = "_user";
	/**
	 * 登陆微信号在SESSION里的储存KEY 
	 */
	public static final String OPENID = "_openid";
	/**
	 * 验证码在Session里的存储KEY
	 */
	public static final String VALIDATECODE = "_validate_code";
	
	/**
	 * 启用
	 */
	public final static Integer STATUS_NORMAL = 1;
	/**
	 * 禁用
	 */
	public final static Integer  STATUS_FORBIDDEN = 0;
	/**
	 * 执行中
	 */
	public final static Integer  PROCESS_RUNNING = 1;
	
	public final static String RSAKEY_LOCAL = "D:/tmp"; 
	
	public final static String RSApublickey = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKihfalV5Kt1wwKBDalLK6hGZAc3kxz33B36oeOOZMXTVTtPEHBK7eIXMvOwLMbB7IWkU/9ppZuVG8+tJs0BeekCAwEAAQ==";
    
	public final static String RSAprivatekey = "MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAqKF9qVXkq3XDAoENqUsrqEZkBzeTHPfcHfqh445kxdNVO08QcErt4hcy87AsxsHshaRT/2mlm5Ubz60mzQF56QIDAQABAkBG4qOtNBMM1FLmUZOJj7TJZtWThxQLQFHCNGIrAudvlIhXlxbFlW+DZdKFBOqF5BCYZ3CmHngH3vBtqSxyonH1AiEA4ibYL0jwnqZdgJv1xfUcv/D5y2WaAYjAAp0PUZ+uqysCIQC+4yUXsdQDTjlD68XRLtzJEmmRqkbAT3dq6SKHcmCVOwIgS+Kq8hrwmtvKTkiHDPj1v7Z1q3mZVuBzRa08IbCKZOcCIF2T/Rsgkk8MigZCDzf9QT9RR2+hig28504B/GtqJu8BAiA8bemLgnuSDQde30cBQVfb6Sv3W+s6gLC4eQR/4Ud/JQ==";
	
	// ////////////////////////接口错误说明/////////////
	/**
	 * 操作成功
	 */
	public static final int MESSAGE_INT_SUCCESS = 0;
	
	
	public static final String EXCEPTION = "_exception";
	
	/**
	 * 未登录
	 */
	public static final int MESSAGE_INT_NOLOGIN = 10000;
	/**
	 * 无操作权限
	 */
	public static final int MESSAGE_INT_NOMODULE = 10001;
	/**
	 * 密码错误
	 */
	public static final int MESSAGE_INT_PWDERROR = 11002;
	
	/**
	 * 分配100个错误码给文件转换
	 */
	public static final int MESSAGE_INT_FILE_TRANSFER_ERROR = 20001;
	/**
	 * 分配100个错误吗给数据库
	 */
	public static final int MESSAGE_DBFAIL = 20101;
	/**
	 * 自定义表单增加辅助单位功能(在前台要自动加上辅助功能的脚本)
	 */
	public static final int HAS_ASSIST = 1000;
	// ////////////////////////接口错误说明/////////////

	/**
	 * 自定义层别缓存
	 */
	public static final HashMap<String, Integer> layerCache = new HashMap<>();
	/**
	 * 自定义层别下的所有字段
	 */
	public static final HashMap<Integer, List<DefineFieldBean>> layerFieldCache = new HashMap<>();
	/**
	 * 自定义字段缓存
	 */
	public final static HashMap<String, DefineFieldBean> fieldCache = new HashMap<>();
	/**
	 * 枚举缓存
	 */
	public final static HashMap<String, EnumElement<Object>> enumCache = new HashMap<>();
	
	
	public static final Map<String,StaffBean> STAFF = new HashMap<>();
	public static final Map<String,DepartmentTreeBean> DEPARTMENT = new HashMap<>();
}
